package cn.yto.print.enums;

import lombok.Getter;

public enum ResponseCodeEnum {

    /* 错误码枚举 */
    SUCCESS("0000", "success", "成功"),
    PLUGIN_STATUS("0001", "success", "打印组件状态变更通知"),
    TIME_OUT("1001", "failed", "打印组件超时处理通知"),
    FAILURE("5000", "failed", "失败"),
    UNKNOWN("5001", "failed", "未知指令"),
    NO_PRINTER("5002", "failed", "未获取到本地打印机"),
    PARAM_ERROR("5005", "failed", "非法请求参数"),
    UNLINK_ERROR("5006", "failed", "打印组件连接异常"),
    EXCEPTION("9999", "failed", "系统异常");

    @Getter
    private final String code;
    @Getter
    private final String status;
    @Getter
    private final String desc;

    ResponseCodeEnum(String code, String status, String name) {
        this.code = code;
        this.status = status;
        this.desc = name;
    }

}
